//
//  BaseModel+Html.m
//  BobNews
//
//  Created by lanou3g on 16/5/13.
//  Copyright © 2016年 liu. All rights reserved.
//

#import "BaseModel+Html.h"
#import <objc/runtime.h>
#import <objc/message.h>

/// key
static NSString const *key = @"HtmlStrKey";
@implementation BaseModel (Html)

- (void)setHtmlStr:(NSString *)htmlStr {
    objc_setAssociatedObject(self, (__bridge const void *)(key), htmlStr, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}
- (NSString *)htmlStr {
    return objc_getAssociatedObject(self, (__bridge const void *)(key));
}

@end
